
/**
* @module data-message
* @author: HJava
* @description: 透传消息类定义
* @since: 2020-04-24 19:20:08
*/
Object.defineProperty(exports, "__esModule", { value: true });
var DataMessage = /** @class */ (function () {
    function DataMessage(_a) {
        var type = _a.type, mid = _a.mid, data = _a.data, channelId = _a.channelId, deviceId = _a.deviceId;
        this.type = 0;
        this.mid = '';
        this.data = '';
        this.channelId = 0;
        this.deviceId = 0;
        this.type = type;
        this.mid = mid;
        this.data = data;
        this.channelId = channelId;
    }
    DataMessage.prototype.isDataMessage = function () {
        return true;
    };
    DataMessage.prototype.toString = function () {
        return 'DataMessage{'
            + ' type:' + this.type
            + ' mid:' + this.mid
            + ' data:' + this.data
            + ' channelId:' + this.channelId
            + ' deviceId:' + this.deviceId
            + ' }';
    };
    return DataMessage;
}());
exports.default = DataMessage;


//# sourceURL=webpack://MTDX/./src/extra/models/data-message.ts?